﻿using System;
using System.ComponentModel.DataAnnotations;

namespace smp.ButterflyCakes.Models.FormModels.Order
{
    public class ComponentHeightModel
    {
        [Required]
        public Guid OrderId { get; set; }
        [Required]
        public Guid ComponentId { get; set; }
        [Required]
        public int? Height { get; set; }

        public CakeHeightType? HeightType { get; set; }

        public int? NumberOfCakes { get; set; }

        public int? NumberOfFlavours { get; set; }

        public SelectItem SelecHeightType
        {
            get
            {
                return new SelectItem("HeightType", typeof(CakeHeightType), HeightType, true);
            }
        }
    }
}
